﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Yto.Entities;
using Yto.Repositories;

namespace Yto.Dapper.Repositories
{
    public class DapperRepository<TE> : DapperRepository<TE, int>, IBaseRepository<TE>
        where TE : class, IEntity<int>
    {
    }
    public class DapperRepository<TE, TPK> : BaseRepository<TE, TPK>
        where TE : class, IEntity<TPK>
    {
        public override bool BatchInsert(IEnumerable<TE> list)
        {
            throw new NotImplementedException();
        }

        public override void Delete(TE entity)
        {
            throw new NotImplementedException();
        }

        public override void Delete(TPK id)
        {
            throw new NotImplementedException();
        }

        public override bool DeleteAll()
        {
            throw new NotImplementedException();
        }

        public override IQueryable<TE> GetAll()
        {
            throw new NotImplementedException();
        }

        public override TE Insert(TE entity)
        {
            throw new NotImplementedException();
        }

        public override TE Single(TPK id)
        {
            throw new NotImplementedException();
        }

        public override TE Single(Expression<Func<TE, bool>> expression)
        {
            throw new NotImplementedException();
        }

        public override TE Update(TE entity)
        {
            throw new NotImplementedException();
        }
    }
}
